import request from '@/api/request'
/* 获取歌单详情 */
export const getPlayListDetail = (id) => request({ url: '/playlist/detail', params: { id, }, method: 'get' })
// 获取歌单所有歌曲
export const getTrackAll = (id) => request({ url: '/playlist/track/all', params: { id }, method: 'get' })
// 获取音乐 url - 新版
export const getSongUrl = (id) => request({ url: '/song/url', params: { id }, method: 'get' })
// 获取歌词
export const getLyric = (id) => request({ url: '/lyric', params: { id }, method: 'get' })
/* 获取排行榜信息 */
export const getToplist = () => request({ url: '/toplist', method: 'get' })
/* 获取歌单分类 */
export const getAllCat = () => request({ url: '/playlist/catlist' })
/* 获取热门歌单分类 */
export const getHotCat = () => request({ url: '/playlist/hot' })
/* 根据分类获取歌单 */
export const getPlayListByCat = ({ limit, order, cat, offset }) => request({ url: '/top/playlist', params: { limit, order, cat, offset }, method: 'get' })
/* 精品歌单标签列表 */
export const getHighqualityTags = () => request({ url: '/playlist/highquality/tags' })
// 获取精品歌单
export const getHighquality = (cat, limit, before) => request({ url: '/top/playlist/highquality', params: { cat, limit, before }, method: 'get' })
// ### 获取每日推荐歌曲
export const getRePlaySongs = () => request({ url: '/recommend/songs', method: 'get' })
// ### 获取每日推荐歌单
export const getRePlaylist = () => request({ url: '/recommend/resource', method: 'get' })